package codegen.groovy.language

import codegen.groovy.graphnetwork.model.Value
/**
 *
 * @author hungcuong
 */

/**
 * Variable class represented by a Node, in the level of a programming language like Java or GLSL.
 * Variable class has meaning in a Context (called NameSpace) as its "Parent" 
 * Variable can be represented by Text with a Grammar.
 * "Variable has VarProperty" relationship is like "Node has Value".
 */


public class Variable extends Node{
    NameSpace nameSpace;
    
    public Variable(String name) {
        super(name);
        this.nameSpace = new NameSpace(this);
    }
    String getInitationText(){
        return " "+this.name +" = " + ""
    }
    
    public String getNamedValue(VarProperty property){
        return this.name +"."+property.name;
    }
    

    String getResultSyntax(){
        // get initation text
        
    }
}

